/*
 ========================================================================
 $Id: VoIPApplication.cpp 10 2010-03-30 13:10:39Z robert.bridle $
 $Author: robert.bridle $
 $Date: 2010-03-30 13:10:39 +0000 (Tue, 30 Mar 2010) $
 $Revision: 10 $
 Copyright (c) 2010 Fandango60.  
 ========================================================================
 */
#include "VoIPApplication.h"
#include "VoIPDocument.h"
#ifdef EKA2
#include <eikstart.h>
#endif

/**
 * @brief Returns the application's UID (override from CApaApplication::AppDllUid())
 * @return UID for this application (KUidVoIPApplication)
 */
TUid CVoIPApplication::AppDllUid() const
    {
    return KUidVoIPApplication;
    }

/**
 * @brief Creates the application's document (override from CApaApplication::CreateDocumentL())
 * @return Pointer to the created document object (CVoIPDocument)
 */
CApaDocument* CVoIPApplication::CreateDocumentL()
    {
    return CVoIPDocument::NewL(*this);
    }

#ifdef EKA2

/**
 *	@brief Called by the application framework to construct the application object
 *  @return The application (CVoIPApplication)
 */
LOCAL_C CApaApplication* NewApplication()
    {
    return new CVoIPApplication;
    }

/**
 * @brief This standard export is the entry point for all Series 60 applications
 * @return error code
 */
GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication(NewApplication);
    }

#else 	// Series 60 2.x main DLL program code
/**
 * @brief This standard export constructs the application object.
 * @return The application (CVoIPApplication)
 */
EXPORT_C CApaApplication* NewApplication()
    {
    return new CVoIPApplication;
    }

/**
 * @brief This standard export is the entry point for all Series 60 applications
 * @return error code
 */
GLDEF_C TInt E32Dll(TDllReason /*reason*/)
    {
    return KErrNone;
    }

#endif // EKA2
